package com.diamond.service;

import com.diamond.pojo.ProductInfo;
import com.diamond.pojo.vo.ProductInfoVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ProductInfoService {

    List<ProductInfo> getAll();

    PageInfo<ProductInfo> splitPage(int pageNum,int pageSize);

    int save(ProductInfo info);

    ProductInfo getById(Integer pid);

    int update(ProductInfo info);

    int delete(Integer pid);

    int deleteBarth(String[] pids);

    List<ProductInfo> selectCondition(ProductInfoVo vo);

    PageInfo<ProductInfo> splitPageCondition(ProductInfoVo vo, int pageSize);
}
